package com.example.demo2.d1;

/**
 * @author renyitong
 * @version 1.0.0
 * @createTime 2025年11月19日
 * @Description
 */
public class Test1 {

    public static void main(String[] args) {
        BStrategy bStrategy1 = new BStrategy1();
        BStrategy bStrategy2 = new BStrategy2();
        MyInterface myInterface = new MyInterfaceImpl(bStrategy1);
        MyInterface myInterface2 = new MyInterfaceImpl(bStrategy1);
        myInterface.b();
        myInterface2.b();
    }

}
